import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Index from '@/components/Index'
import Forget from '@/components/Forget'
import UpdatePassword from '@/components/UpdatePassword'
import adminTenant from '@/components/admin/adminTenant'
import adminLandlord from '@/components/admin/adminLandlord'
import adminStall from '@/components/admin/adminStall'
import adminVehicle from '@/components/admin/adminVehicle'
import adminOrder from '@/components/admin/adminOrder'
import adminMember from '@/components/admin/adminMember'

import Stall from '@/components/Real/Stall'
import Renter from '@/components/Real/Renter'
import AddStall from '@/components/Real/AddStall'
import Order from '@/components/Real/Order'
import UploadImg from '@/components/Real/uploadImg'

import zt_Stall from '@/components/user/zt_Stall'
import zt_Order from '@/components/user/zt_Order'
import Userinfo from '@/components/user/Userinfo'
import Vehicle from '@/components/user/Vehicle'
import Reset from '@/components/user/Reset'
import zt_Order_conduct from '@/components/user/zt_Order_conduct'
import ChooseRole from '@/components/user/ChooseRole'
import map from '@/components/map'
import hhh from '@/components/hhh'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/uploadimg",
      component:UploadImg
    },
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index,
      children:[
        {
          path: '/map',
          name: 'map',
          component: map
        },
        {
          path: '/hhh',
          name: 'hhh',  
          component: hhh
        },
        {
          path: '/Userinfo',
          name: 'Userinfo',
          component: Userinfo
        },
        {
          path: '/Vehicle',
          name: 'Vehicle',
          component: Vehicle
        },
        {

          path: '/stall',
          name: 'Stall',
          component: Stall
        },
        {
          path: '/renter',
          name: 'Renter',
          component: Renter
        },
        {
          path: '/addstall',
          name:'AddStall',
          component: AddStall
        },
        {
          path: '/zt_Stall',
          component: zt_Stall
        },
        {
          path: '/zt_Order',
          component: zt_Order
        },
        {
          path: '/zt_Order_conduct',
          component: zt_Order_conduct
        },
        {
          path: '/Userinfo',
          name: 'Userinfo',
          component: Userinfo
        },
        {
          path: '/Vehicle',
          name: 'Vehicle',
          component: Vehicle
        },
        {
          path: '/adminTenant',
          name: 'adminTenant',
          component: adminTenant
        },
        {
          path: '/adminLandlord',
          name: 'adminLandlord',
          component: adminLandlord
        },
        {
          path:'/adminStall',
          name:'adminStall',
          component:adminStall
        },
        {
          path:'/adminVehicle',
          name:'adminVehicle',
          component:adminVehicle
        },
        {
          path:'/adminOrder',
          name:'adminOrder',
          component:adminOrder
        },
        {
          path:'/adminMember',
          name:'adminMember',
          component:adminMember
        },
        {
          path: '/order',
          name: 'order',
          component: Order
        }
      ]
    },
    {
      path: '/Forget',
      name: 'Forget',
      component: Forget
    },
    {
      path: '/UpdatePassword',
      name: 'UpdatePassword',
      component: UpdatePassword
    },
    {
      path: '/Vehicle',
      name: 'Vehicle',
      component: Vehicle
      },


    {
      path: '/Reset',
      component: Reset
    },
    {
      path: '/ChooseRole',
      component: ChooseRole
    },
  ]
})
